<?php

$loader = new \Composer\Autoload\ClassLoader();

$vendorDir = dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'vendor-back';

$map = [
    'Encore\\Admin\\'             => [$vendorDir . '/encore/laravel-admin/src'],
    'Illuminate\\Notifications\\' => [$vendorDir . '/laravel/framework/src/Illuminate/Notifications'],
    'ListenMusic\\'               => [$vendorDir . '/listen-music']
];

foreach ($map as $namespace => $path) {
    $loader->setPsr4($namespace, $path);
}

$loader->register(true);